package org.lx.nursing.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.lx.common.annotation.Excel;
import org.lx.common.core.domain.BaseEntity;

import java.time.LocalDateTime;

/**
 * 入住对象 check_in
 *
 * @author lx
 * @date 2025-02-28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("入住实体")
public class CheckIn extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @Excel(name = "老人姓名")
    @ApiModelProperty(value = "老人姓名")
    private String elderName;

    @Excel(name = "老人ID")
    @ApiModelProperty(value = "老人ID")
    private Long elderId;

    @Excel(name = "身份证号")
    @ApiModelProperty(value = "身份证号")
    private String idCardNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入住开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "入住开始时间")
    private LocalDateTime startDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入住结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "入住结束时间")
    private LocalDateTime endDate;

    @Excel(name = "护理等级名称")
    @ApiModelProperty(value = "护理等级名称")
    private String nursingLevelName;

    @Excel(name = "入住床位")
    @ApiModelProperty(value = "入住床位")
    private String bedNumber;

    @Excel(name = "状态 (0: 已入住, 1: 已退住)")
    @ApiModelProperty(value = "状态 (0: 已入住, 1: 已退住)")
    private Integer status;

    @Excel(name = "排序编号")
    @ApiModelProperty(value = "排序编号")
    private Integer sortOrder;
}
